import java.io.Serializable;//让用户支持序列化

public abstract class Users implements Serializable{
    private String ID;//用户ID//用户名
    private String name;//用户名
    private String password;//用户密码
    private String registrationDate;//用户注册时间
    private String role;//用户类型
    private String phoneNumber;//用户电话

    public Users(){}
    public Users(String ID,String name,String password,String registrationDate,String role,String phoneNumber){
        this.ID=ID;
        this.name=name;
        this.password=password;
        this.registrationDate=registrationDate;
        this.role=role;
        this.phoneNumber=phoneNumber;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getRegistrationDate() {
        return registrationDate;
    }

    public void setRegistrationDate(String registrationDate) {
        this.registrationDate = registrationDate;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    //列出所有用户信息的方法
    public abstract void listAllUsers();
    //删除用户的方法
    public abstract void deleteUser();
    //查询用户的方法
    public abstract void searchUser();
    //增加用户的方法
    public abstract void addUser();
    //修改用户的方法
    public abstract void modifyUser();
}
